
#include <iostream>
using namespace std;

class Integer {
	public:
		Integer( int i ) : m_i(i) {
			cout << "Called" << endl;
		}
		operator int( ) const {
			cout << "called" << endl;
			return m_i;
		}
	private:
		int m_i;
};

// designer
// ------------------------------------------------------------------
// user

int main( void ) { 
	int n = 666;
	Integer ix = n;

	int m = ix;
	cout << m << endl;

	return 0;
}

